-- GENERATED SPELL FOR [Eagle Spirit] --


function spell0_23136(pUnit, Event) --@Spite of the Eagle,Self--
pUnit:FullCastSpellOnTarget(40240,pUnit)
pUnit:RegisterEvent('Sorts_23136', 6000, 1)
end

function Sorts_23136(pUnit, Event)
local choix_sorts_23136 = math.random(0, 0)
if choix_sorts_23136 == 0 then
pUnit:RegisterEvent('spell0_23136', 1, 1)
end
end

function mob23136_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23136', math.random(1500, 3000), 1)
end

function mob23136_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23136_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23136_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23136, 1, 'mob23136_Action')
RegisterUnitEvent(23136, 2, 'mob23136_Leave')
RegisterUnitEvent(23136, 3, 'mob23136_Kill')
RegisterUnitEvent(23136, 4, 'mob23136_Die')
